package cn.sz.dzy.customer.controller;

import cn.sz.dzy.common.util.result.Result;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

/**
 * @program: gta1400
 * @description:
 * @author: DingZhenYun
 * @create: 2021-12-07 14:45
 **/
@Api(tags = "customer")
@RestController
@RequestMapping("/customerApi/customer/test")
@Slf4j
public class Test {

//    @Autowired
//    private TestServiceClient testServiceClient;

    @GetMapping("/customertest")
    public Result findByDictCode() {
        List<String> list=new ArrayList<>();
        list.add("ad11");
        list.add("ad22");
        list.add("ad33");
        list.add("ad44");
        return Result.success(list);
//        return R.ok().data("dictList", list);
    }

//    @GetMapping("/OpenFeign")
//    public Result OpenFeign() {
//        List<String> list = testServiceClient.test();
//        System.out.println("调用成功");
////        return Result.ok().data("dictList", list);
//        return Result.success(list);
//
//    }
}
